<table class="layui-table" lay-filter="edit-table" lay-data="{method: 'post',loading:'true',url:'{:url('Carmanage/recordViolationCar')}', page:true}" lay-filter="edit-table">
    <thead>
    <tr>
        <th lay-data="{field:'car_plate'}">车牌号</th>
        <th lay-data="{field:'car_name'}">车型</th>
        <th lay-data="{field:'wzinfo'}">是否存在违章</th>
        <th lay-data="{toolbar:'#car_hangup'}">已挂靠</th>
        <th lay-data="{field:'car_yearover'}">年检到期日</th>
        <th lay-data="{toolbar:'#type'}">汽车类型</th>
    </tr>
    </thead>
</table>
<script type="text/html" id="car_hangup">
    {{#  if(d.car_hangup == 1){ }}
    是
    {{#  } else if(d.car_hangup == 2){ }}
    否
    {{#  } }}
</script>

<script type="text/html" id="type">
    {{#  if(d.car_who == 1){ }}
    总公司
    {{#  } else if(d.car_who == 2){ }}
    分公司
    {{#  } else if(d.car_who == 3){ }}
    私家车
    {{#  } }}
</script>




